<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport"
			content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>配置管理</title>
		<script type="text/javascript" src="/jquery/jquery-1.8.0.min.js"></script>
	</head>
	<script>
		function clearCatch(id,url) {
            var text = $("#"+id).text();
            if (confirm('确定要清除'+text+'?')) {
                $.ajax({
                    type: 'post',
                    url: url,
                    dataType: 'json',
                    success: function (result) {
                        if (result.success == true) {
                            alert('清除成功！');
                        } else {
                            alert(result.msg);
                        }
                    }
                });
            }
        }
	</script>
	<body >
	<div style="margin-top: 5px;">
		<span id="appversion">app版本信息缓存[APPVERSIOIN-1]</span>
		<span> <button onclick="clearCatch('appversion','/sys/clearAppVersion');">清除</button></span>
	</div>
	<div style="margin-top: 5px;">
		<span id="appconf">app基本配置信息缓存[APPCONF-1]</span>
		<span> <button onclick="clearCatch('appconf','/sys/clearAppConf');">清除</button></span>
	</div>
	<div style="margin-top: 5px;">
		<span id="sys">app国内跟团游&火车票相关配置缓存[SYSTEM_DICTIONARY-2]</span>
		<span> <button onclick="clearCatch('sys','/sys/clearSys');">清除</button></span>
	</div>
	<div style="margin-top: 5px;">
		<span id="rmb">人民币转FMT比例缓存[RMB_FMT_RATE-2]</span>
		<span> <button onclick="clearCatch('rmb','/sys/clearRmbFmtRate');">清除</button></span>
	</div>
	<div style="margin-top: 5px;">
		<span id="lotteryConsumer">抽奖支付蜜糖数量缓存[lottery_consume_fmt-1]</span>
		<span> <button onclick="clearCatch('lotteryConsumer','/sys/clearLotteryConsumeFmt');">清除</button></span>
	</div>
	<div>
		<span id="lotteryRule">抽奖规则缓存[lottery_rule-1]</span>
		<span> <button onclick="clearCatch('lotteryRule','/sys/clearLotteryRule');">清除</button></span>
	</div>
	<div style="margin-top: 5px;">
		<span id="prizeConf">奖品配置缓存[PRIZE_CONFIG_LIST_PREFIX/-1]</span>
		<span> <button onclick="clearCatch('prizeConf','/sys/clearPrizeConfig');">清除</button></span>
	</div>
	<div style="margin-top: 5px;">
		<span id="clearGiveHoneyCountOnShare">清除社区分享算法蜂蜜基数[GIVE_HONEY_COUNT_ON_SHARE-1]</span>
		<span> <button onclick="clearCatch('clearGiveHoneyCountOnShare','/sys/clearGiveHoneyCountOnShare');">清除</button></span>
	</div>

	<div style="margin-top: 5px;">
		<span id="travel_conf">旅行值配置相关travel_conf[TRAVELCONF-2]</span>
		<span> <button onclick="clearCatch('travel_conf','/sys/clearTravelConf');">清除</button></span>
	</div>
	<div style="margin-top: 5px;">
		<span id="user_sign_conf">用户签到配置user_sign_conf[USER_SIGN_CONF-2]</span>
		<span> <button onclick="clearCatch('user_sign_conf','/sys/clearUserSignConf');">清除</button></span>
	</div>
	<div style="margin-top: 5px;">
		<span id="rights_conf">购物奖励开关rights_conf[RIGHTSCONF-2]</span>
		<span> <button onclick="clearCatch('rights_conf','/sys/clearRightConf');">清除</button></span>
	</div>

	<div style="margin-top: 5px;">
		<span id="fmt_reward_conf">FMT支付奖励配置fmt_reward_conf[FMT_REWARD_CONF-2]</span>
		<span> <button onclick="clearCatch('fmt_reward_conf','/sys/clearFmtRewardConf');">清除</button></span>
	</div>

	<div style="margin-top: 5px;">
		<span id="shop_category">商品类目shop_category[SHOP_CATEGORY-2]</span>
		<span> <button onclick="clearCatch('shop_category','/sys/clearShopCategory');">清除</button></span>
	</div>
	<div style="margin-top: 5px;">
		<span id="user_auth_reward_conf">用户实名天数奖励user_auth_reward_conf[USER_AUTH_REWARD_CONF-2]</span>
		<span> <button onclick="clearCatch('user_auth_reward_conf','/sys/clearUserAuthRewardConf');">清除</button></span>
	</div>
	<div style="margin-top: 5px;">
		<span id="user_guide_conf">新手指南user_guide_conf[USER_GUIDE_CONF-2]</span>
		<span> <button onclick="clearCatch('user_guide_conf','/sys/clearGuideConf');">清除</button></span>
	</div>
	<div style="margin-top: 5px;">
		<span id="fees_rate">购物手续费fees_rate[FEES_TATE-2]</span>
		<span> <button onclick="clearCatch('fees_rate','/sys/clearFeesTateConf');">清除</button></span>
	</div>


	</body>
</html>